<template>
  <demo-block title="错误提示">
    <vcu-cell-group inset>
      <vcu-input
        v-model="username"
        error
        required
        label="用户名"
        placeholder="请输入用户名"
      />
      <vcu-input
        v-model="phone"
        required
        label="手机号"
        error-message="手机号格式错误"
      />
    </vcu-cell-group>
  </demo-block>
</template>
<script setup>
import { ref } from "vue";

const phone = ref("123");
const username = ref("");
</script>
